package com.admin.work.service.impl;

import com.admin.work.domain.WorkCompany;
import com.admin.work.mapper.WorkCompanyMapper;
import com.admin.work.service.IWorkCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 岗位信息 服务层处理
 * 
 * @author fzgnin
 */
@Service
public class WorkCompanyServiceImpl implements IWorkCompanyService
{
    @Autowired
    private WorkCompanyMapper companyMapper;

    /**
     * 根据名称或编码查询公司信息集合
     *
     * @param query 查询信息
     * @return 查询列表
     */
    @Override
    public List<WorkCompany> selectByNameORCode(String query)
    {
        return companyMapper.selectByNameORCode(query);
    }
}
